package leihua.crm.workbench.service.impl;

import leihua.crm.workbench.domain.TranRemark;
import leihua.crm.workbench.mapper.TranRemarkMapper;
import leihua.crm.workbench.service.TranRemarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author leiHua
 * @Date 2022/10/26 14:01
 */
@Service
public class TranRemarkServiceImpl implements TranRemarkService {
    @Autowired
    TranRemarkMapper tranRemarkMapper;
    @Override
    public List<TranRemark> queryTranRemarkForDetailByTranId(String tranId) {
        return tranRemarkMapper.selectTranRemarkForDetailByTranId(tranId);
    }

    @Override
    public int saveTranRemark(TranRemark tranRemark) {
        return tranRemarkMapper.insert(tranRemark);
    }
}
